#ifndef _MAIN_H_
#define _MAIN_H_

#include "stm32f0xx.h"
#include "data_type.h"



#include "config.h"

#define	DRAM_MAX_SIZE	(1000u)
#define	CONFIG_RAM_MAX_SIZE	(1000u)





typedef struct _ram_block
{
	/*组态数据*/
	config_pra_t     config_parameter;
	/*组态工程名数据*/
	config_project_name_t   config_project_name;
	/*运行显示数据*/
	run_disp_data_t  run_display_data;
	/*运行辅助数据*/
	run_aux_data_t   run_auxiliary_data;
}ram_block_t;





extern ram_block_t	g_st_ram1;
extern ram_block_t	g_st_ram2;
extern bool_t   b8_uart_reflag;  //接收UART空闲状态位
extern bool_t   b8_uart_txflag;  //发送UART空闲状态位
extern bool_t  b8_flash_writeflag; //FLASH 写操作标志位
extern uint8_t  u8_uart_fuction; //串口功能码
void USART1_IRQHandler(void);
void DMA1_Channel4_5_IRQHandler(void);
#ifdef FID_MAIN
	static void double_RAM_compare(const uint8_t u8lc_init_val, const uint8_t u8lc_incr_val);
#else

#endif
    
#endif
